package com.zmn.oms.persistence.interfaces.quotation3;

import com.zmn.oms.model.entity.quotation3.OrderAcceptMaintainItem;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface OrderAcceptMaintainItemDao {

    int countByOrderIdAndWorkId(@Param("orderId") Long orderId, @Param("workId") Long workId);

    List<OrderAcceptMaintainItem> listByOrderIdAndWorkId(@Param("orderId") Long orderId, @Param("workId") Long workId);

    List<OrderAcceptMaintainItem> listByOrderIdList(@Param("orderIdList") List<Long> orderIdList);

    int batchInsert(@Param("orderAcceptMaintainItemList") List<OrderAcceptMaintainItem> orderAcceptMaintainItemList);

    int deleteByOrderId(@Param("orderId") Long orderId);

}
